package effectiveJava.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * Created by dongyuncong on 2017/8/28.
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Apple implements Serializable {

    private static final long serialVersionUID = 2L;

    private String color;
    private int size;
    private String taste;
    private static String type;

    static class SubApple {
        public void doSomething() {
            type = "";
        }
    }
}
